package com.zhengqing.design.action.mediator._01;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p> 用户 </p>
 *
 * @author zhengqingya
 * @description
 * @date 2022/12/22 11:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private String name;

    public void sendMessage(String message) {
        ChatRoom.showMessage(this, message);
    }
}